<?php

namespace app\sign\model;

use think\Model;
use think\Request;
use app\common\model\BaseModel;

/**
* @property string $user_sign_uuid 
* @property int $user_id 用户ID
* @property string $sign_date 签到日期
* @property int $duration_days 持续天数
* @property string $week 周
* @property string $points 获取积分数
* @property string $create_time 
*/
class UserSign extends BaseModel
{
    // 表名
    protected $table = 'user_sign';
    protected $pk = 'user_sign_uuid';
    const primaryKey = 'user_sign_uuid';

    // 追加属性
    protected $append = [

    ];

    public static function __make(Request $request)
    {
        return (new self())->find($request->param(self::primaryKey));
    }
}
